import { currentState } from "./index.js";
import { emit } from "./utils/scoket.js";
//角色状态
export var state = {
    roleName: "我",
    //血量
    hp: 10,
    //移动速度
    roleSpeed: 30,
    //移动频率
    moveFrequency: 20,
    //子弹移动距离
    bulletSpeed: 30,
    //子弹移动频率
    bulletMove: 20,
    //子弹发射频率
    bulletFrequency: 2,
    //停止自己的行为
    stop: false
};
//指令
export var instrction = {
    wwssadadbaba: function () {
        state.hp = 30;
        if (currentState.role === "p1")
            emit.p1("/getState", state);
        if (currentState.role === "p2")
            emit.p2("/getState", state);
    },
    bulletspeed: function () {
        state.bulletMove = 150;
    },
    bulletfrequency: function () {
        state.bulletFrequency = 10;
    }
};
export var options = {
    barrageColor: "#4fc1ff",
    bgc: "",
    barrageSpeed: 30,
    type: "rolling"
};
